﻿using LiSA_Server.Base.NHibernate.Models;
using NHibernate;
using NHibernate.Mapping.ByCode.Conformist;

namespace LiSA_Service.ResearchProjects.Models
{
    public class ArticleField : Entity
    {
        public virtual string Type { get; set; }

        public virtual string Value { get; set; }
    }

    public class ArticleFieldMapping : ClassMapping<ArticleField>
    {
        public ArticleFieldMapping()
        {

            this.Property(x => x.Type, x => x.Type(NHibernateUtil.StringClob));
            this.Property(x => x.Value, x => x.Type(NHibernateUtil.StringClob));
        }
    }
}